<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;


class CreateMemberTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('member', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->tinyInteger('level')->comment('会员等级');
            $table->integer('price')->comment('会员价格');
            $table->integer('deposit')->comment('会员押金');
            $table->tinyInteger('time')->comment('会员时间类型(1月/2季度/3年)');
            $table->string('label')->comment('标签');
        });
        DB::statement("ALTER TABLE `member` comment '会员表';");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('member');
    }
}
